/*
 * @Author: shuai
 * @Date: 2021-03-26 09:16:21
 * @LastEditors: shuai
 * @LastEditTime: 2021-03-26 09:42:42
 * @Description: file content
 */
import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'

export function getToken(): string {
  return Cookies.get(TokenKey) as string
}

export function setToken(token: string): string {
  return Cookies.set(TokenKey, token) as string
}

export function removeToken(): void {
  Cookies.remove(TokenKey)
}
